home *** CD-ROM | disk | FTP | other *** search
- Path: nntp.uio.no!solace!news
- From: cmh@lls.se (Magnus Holmgren)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: File/Pipe/Console IO
- Date: 18 Mar 1996 20:01:00
- Organization: Programmers' Point
- Message-ID: <4in30j$53u@fizban.solace.mh.se>
- References: <9603171531.AA002ox@etchq.demon.co.uk>
- NNTP-Posting-Host: petroc.lls.se
- Mime-Version: 1.2
- Content-Type: TEXT/PLAIN; charset=ISO-8859-1
- Content-Transfer-Encoding: 8BIT
- X-FTN-To: MushyPea
- X-Newsreader: Spot 1.3a #26/NetGate 1.2
-
- In a message of 17 Mar 96, MushyPea wrote to :
-
- M> I want to copy any incoming data from input A to output C.
- M> I also want to copy any data from input B to output D.
- M> Most importantly, I want to run both in parallel.
-
- M> How do I go about this? I've tried using Read()/Write(), but the
- M> program appears to pause at the Read() if there is no input from
- M> one of the inputs, which means that the other input is left
- M> waiting, even if it has data.
-
- This is normal DOS behaviour.
-
- M> Can anyone suggest any way of writing a program to transfer data between
- M> two pairs of filehandles simultaneously? Assembler code would be
- M> preferred, although C/C++ is just as useful.
-
- Do asyncronous IO with packets. The asyncio library on aminet can do this
- for you, or give you an example on how to do your own implementation (code
- is in C).
-
- --
- Magnus Holmgren - Amiga programmer and enthusiast
-
-
-